<template>
  <div class="sort">
    <div class="sort__header">
      <div>{{ title }}</div>
      <span @click="$emit('toMore')">{{ rightTitle }}</span>
    </div>
  </div>
</template>
<script setup>
const props = defineProps({
  title: {
    default: "学霸榜",
    type: String,
  },
  rightTitle: {
    default: "更多",
    type: String,
  },
});
</script>
<style lang="scss" scoped>
.sort {
  &__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
    div {
      font-family: PingFangSC-Medium;
      font-size: 18px;
      color: #171a1d;
    }
    span {
      font-family: PingFangSC-Regular;
      font-size: 14px;
      color: #676b6b;
    }
  }
}
</style>
